import requests

headers = {
    'referer': 'https://www.kugou.com/',
    'cookie': 'kg_mid=fde6ad999df0e68d52b908031535d0ea; kg_dfid=4FIXNO2woASI3nqFUt1y5cF7; kg_dfid_collect=d41d8cd98f00b204e9800998ecf8427e; Hm_lvt_aedee6983d4cfc62f509129360d6bb3d=1667110667; kg_mid_temp=fde6ad999df0e68d52b908031535d0ea; Hm_lpvt_aedee6983d4cfc62f509129360d6bb3d=1667110767',
    'user-agent': 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/106.0.0.0 Safari/537.36'
}
# url = 'https://webfs.ali.kugou.com/202210301622/e9f127ee8d6a4eeb31bc43b55c84da22/KGTX/CLTX001/cccd9d8e54271ffdcbef28853bb9c3fd.mp3'
url = 'https://wwwapi.kugou.com//yy/index.php?r=play/getdata&hash=cccd9d8e54271ffdcbef28853bb9c3fd'

print(requests.get(url, headers=headers))